﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="ss" %>
<html>
<head>
    <title>编辑部门信息</title>
    <style>
        body {
            margin: 5px;
            background-color: #369;
        }

        #main {
            background-image: url(${pageContext.request.contextPath}/images/bg/bg12.png);
            width: 90%;
            margin: 0 auto;
            min-height: 600px;
            padding: 0px 0px;
        }

        .a1 {
            text-align: center;
            color: blue;
            letter-spacing: 10px;
            font-size: 48px;
            font-family: 华文行楷;
            line-height: 120px;
        }

        .a1 span {
            color: red;
        }

        .right {
            position: absolute;
            top: 40px;
            right: 0px;
        }

        #nav {
            background-color: #330;
            line-height: 40px;
            padding: 0px 50px;
            font-size: 14px
        }

        #nav a {
            color: white
        }

        #wall {
            padding: 10px 50px
        }

        table {
            width: 100%;
            border-spacing: 10px 30px;
            border-top: 1px solid #ccc;
            border-bottom: 1px solid #ccc
        }

        th {
            border-bottom: 2px solid #ccc;
        }

        td {
            text-align: left;
            width: 68%
        }

        tr td:first-child {
            text-align: right;
            width: 30%
        }

        tr:last-child td:last-child {
            padding-left: 20px
        }

        h1 {
            text-align: center
        }

        input[type=text] {
            border-width: 0px 0px 2px 0px;
            border-color: black;
            background-image: url(${pageContext.request.contextPath}/images/bg/bg12.png)
        }

        input:focus {
            border-color: red
        }
    </style>
</head>
<body>
<div id="main">
    <div class="a1">Better Luck T<span>o</span>m<span>o</span>rr<span>o</span>w</div>
    <div id="nav">
        <a href="#">首页</a>

    </div>
    <div id="wall">
        <div id="main2">
            <h1>部门信息</h1>
            <form action="" method="post">
                <input type="hidden" value="${dept.id}" name="id">
                <table>
                    <tbody>
                    <tr>
                        <td>部门名称</td>
                        <td><input name="name" type="text" value="${dept.name}"></td>
                    </tr>
                    <tr>
                        <td>部门位置</td>
                        <td>
                            <input name="loc" type="text" value="${dept.loc}">
                        </td>
                    </tr>
                    <tr>
                        <td>部门电话</td>
                        <td>
                            <input name="phone" type="text" value="${dept.phone}">
                        </td>
                    </tr>
                    <tr>
                        <td>部门描述</td>
                        <td>
					<textarea name="txt" cols="100" rows="5">${dept.txt}
					</textarea>
                        </td>
                    </tr>


                    <tr>
                        <td><input type="submit" value="修改"></td>
                        <td><input type="reset" value="重置"></td>
                    </tr>
                    </tbody>
                </table>
            </form>
        </div>
    </div>
</div>
</body>
</html>


